Dynamic data set in function without use multiple if else

join shbcf.ru